﻿using Domain.Entities;
using FrameworkCore.Attributes;
using System.ComponentModel.DataAnnotations;

#nullable disable

namespace AiBLSmartEdu.Module.AIMedicalAssistant.API.DTOs;

/// <summary>
/// 发起提问
/// </summary>
[Map(typeof(MedicalQuestionAnswerPairs))]
public class MedicalQuestionAnswerPairsCreateInputModel
{
    /// <summary>
    /// 问题
    /// </summary>
    [Required(ErrorMessage = "问题是必填项。")]
    public string Question { get; set; }

    /// <summary>
    /// 知识库ID
    /// </summary>
    [Required(ErrorMessage = "请选择知识库")]
    [Range(1, long.MaxValue, ErrorMessage = "知识库不存在")]
    public long KnowledgeBaseId { get; set; }

    /// <summary>
    /// 对话ID
    /// </summary>
    [Required(ErrorMessage = "请选择对话")]
    [Range(1, long.MaxValue, ErrorMessage = "对话不存在")]
    public long DialogueId { get; set; }
}